//
//  HeadView.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/18.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "HeadView.h"

@interface HeadView ()

@property UILabel *gengduo;
@property UIImageView *tu;

@end

@implementation HeadView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _left = [[BaseView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width/4, self.frame.size.height)];
        [self addSubview:_left];
        
        _beijin = [[UIView alloc] initWithFrame:CGRectMake(10, 6, 20, 20)];
        [_left addSubview:_beijin];
        _beijin.layer.cornerRadius = 10;
        _img = [[UIImageView alloc] initWithFrame:CGRectMake(2.5, 2.5, 15, 15)];
        [_beijin addSubview:_img];
        
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(40, 6, 180, 20)];
        [_left addSubview:_label];
        //字体大小
        _label.font = [UIFont systemFontOfSize:14];
        _label.textAlignment = 0;
        
        _right = [[BaseView alloc] initWithFrame:CGRectMake(self.frame.size.width-60, 0, 50, self.frame.size.height)];
        [self addSubview:_right];
        _gengduo = [[UILabel alloc] initWithFrame:CGRectMake(0, 8, 28, 18)];
        _gengduo.text = @"更多";
        _gengduo.font = [UIFont systemFontOfSize:13];
        [_right addSubview:_gengduo];
        
        _tu = [[UIImageView alloc] initWithFrame:CGRectMake(28, 8, 18, 18)];
        [_right addSubview:_tu];
        _tu.image = [UIImage imageNamed:@"zanting.png"];
        
    }
    return self;
}

@end
